package com.neuedu.ylbx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neuedu.ylbx.controller.ExpenseDetailsController;
import com.neuedu.ylbx.mapper.ExpenseDetailsMapper;
import com.neuedu.ylbx.pojo.ginseng;
import com.neuedu.ylbx.service.ExpenseDetailsService;
import com.neuedu.ylbx.utils.ResultVo;
import com.neuedu.ylbx.vo.ExpenseDetailVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ExpenseDetailsServiceImpl extends ServiceImpl<ExpenseDetailsMapper, ginseng> implements ExpenseDetailsService {
    @Resource
    private ExpenseDetailsMapper expenseDetailsMapper;

    @Override
    public ResultVo<List<ExpenseDetailVo>> getExpensesDetails (Integer id) throws Exception{
        List<ExpenseDetailVo> list = expenseDetailsMapper.selectExpensesDetailsVo(id);
        return ResultVo.ok(list);
    }
}
